<%@ page import="java.util.*" pageEncoding="UTF-8" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>查看课程详情</title>
<script language="javascript" type="text/javascript">
	function dis(){
		var div1=document.getElementById("div1");
		var div2=document.getElementById("div2");
		div1.style.display="none";
		div2.style.display="inherit";
	}
</script>
</head>

<body>
<div id="div1" style="display:inherit"> 
		学生名称：${student.sname }<br />
		真实姓名：${student.srealname }<br /> 
		邮箱：${student.smail }<br /> 
 <input type="button" onclick="dis()" value="编辑" />&nbsp;<input type="button" value="返回" onclick="history.back()"/>
 </div>
  <div style="display:none" id="div2">
 	<form action="updateStudent" method="post" >
 	<input type="hidden" name="student.sid" value="${student.sid }" />
    	学生名称：<input type="text" value="${student.sname}" name="student.sname" /><br />
    	密码：<input  type="password" value="${student.spassword }" name="student.spasswrod"/>
    	<br />
    	真实姓名：<input type="text" value="${student.srealname }" name="student.srealname"/><br/>
    	邮箱：<input  type="text" value="${student.smail }" name="student.smail"/>
        <input type="submit" value="提交" />&nbsp;<input type="button" value="返回" onclick="history.back()"/>
    </form>
 </div>
</body>
</html>
